<?php
include('header.php');
?>

<h2>Selectbox</h2>
<div>
    <form action="#" method="get" id="choose-project-form">
        <label for="choose-project">Projekt auswählen</label>
        <select id="choose-project" class="selectbox" name="choose-project">
            <?php
            for($cnt=1; $cnt <= 5; ++$cnt)
            {
            ?>
            <option value="<?php echo $cnt.'"'; if(isset($_GET['id']) && $_GET['id']==$cnt){echo ' selected';}?>>Auto<?php echo $cnt; ?></option>
            <?php
            }
            ?>
        </select>
        <input type="submit">
    </form>
</div>
<table id="datatable">
   <tr>
       <th class="t_title">Titel</th>
       <th class="t_thema" id="t_thema">Projekt</th>
       <th class="t_gebiet">Gebiet</th>
       <th class="t_ebene">Ebene</th>
       <th>Erstellungszeitpunkt</th>
       <th>Ersteller</th>
   </tr>
   	               <tr>
      <td><a href="http://localhost/webgis/index.php?input=map&amp;m_id=1">Bevölkerungsdichte</a></td>
      <td>dummy</td>
      <td>Österreich</td>
      <td>politische Bezirke<span class="skip">pol</span></td>
      <td class="table_date">06.11.2010</td>
      <td class="table_date">xy</td>
    </tr>
   	               <tr>
      <td><a href="http://localhost/webgis/index.php?input=map&amp;m_id=6">Bevölkerungsdichte2</a></td>
      <td>dummy</td>
      <td>Österreich</td>
      <td>politische Bezirke<span class="skip">pol</span></td>
      <td class="table_date">06.11.2010</td>
      <td class="table_date">xy</td>
    </tr>
   	               <tr>
      <td><a href="http://localhost/webgis/index.php?input=map&amp;m_id=3">Dummy</a></td>
      <td>dummy</td>
      <td>Österreich</td>
      <td>politische Bezirke<span class="skip">pol</span></td>
      <td class="table_date">06.11.2010</td>
      <td class="table_date">xy</td>
    </tr>
   	               <tr>
      <td><a href="http://localhost/webgis/index.php?input=map&amp;m_id=5">Dummy2</a></td>
      <td>dummy</td>
      <td>Österreich</td>
      <td>politische Bezirke<span class="skip">pol</span></td>
      <td class="table_date">06.11.2010</td>
      <td class="table_date">xy</td>
    </tr>
   	               <tr>
      <td><a href="http://localhost/webgis/index.php?input=map&amp;m_id=2">Fläche</a></td>
      <td>dummy</td>
      <td>Österreich</td>
      <td>politische Bezirke<span class="skip">pol</span></td>
      <td class="table_date">06.11.2010</td>
      <td class="table_date">xy</td>
    </tr>
   	               <tr>
      <td><a href="http://localhost/webgis/index.php?input=map&amp;m_id=7">Nächtigungen</a></td>
      <td>dummy</td>
      <td>Österreich</td>
      <td>NUTS3-Ebene<span class="skip">nuts</span></td>
      <td class="table_date">10.11.2010</td>
      <td class="table_date">xy</td>
    </tr>
   
</table>


<script type="text/javascript" src="<?php echo BASE_URI; ?>output/js/src/configurable.js" ></script>
<script type="text/javascript" src="../selectbox.js" ></script>
<?php
if(isset($_GET['gis']))
{ 
?>
<script type="text/javascript" src="../policies_ui.js" ></script>
<script type="text/javascript" src="../ui_main.js" ></script>
<script type="text/javascript">
/* <![CDATA[ */
    document.observe('dom:loaded', new GIS_Selectbox());
/* ]]> */
</script>
<?php
}
else
{
?>
<script type="text/javascript">
/* <![CDATA[ */
    document.observe('dom:loaded', new Selectbox());
/* ]]> */
</script>
<?php
}
include('footer.php');
?>
